package Demo08;

public class EnumDemo {

    public static void main(String[] args) {
            PrintSeason(Season.Spring);
        for (Season value:
             Season.values()) {
            System.out.println(value);
        }
        System.out.println(Direction.South.getName());
    }

    public static void PrintSeason(Season season){
        switch (season){
            case Spring :
                System.out.println("春天");
                break;
            case Summer:
                System.out.println("夏天");
                break;
            case Fall:
                System.out.println("秋天");
                break;
            case Winter:
                System.out.println("冬天");
                break;
        }
    }
}
